﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<nelech.Models.DBModel.Maayan>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    רשימת מעיינות
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        רשימת מעיינות</h2>
    <table>
        <tr>
            <th>
            </th>
              <th>
                מס'
            </th>
            <th>
                שם
            </th>
        </tr>
        <% foreach (var item in Model)
           { %>
        <tr>
            <td>
                <%= Html.ActionLink("עריכה", "EditSpring", new { id = item.id })%>
                |
                <%= Html.ActionLink("למיחזור", "RecycleSpring", new { id = item.id })%>
                |
                <%= Html.ActionLink("תצוגה", "SpringInfo", "Place", new { id = item.id }, new object())%>
            </td>
             <td>
                <%= Html.Encode(item.id) %>
            </td>
            <td>
                <%= Html.Encode(item.name) %>
            </td>
        </tr>
        <% } %>
    </table>
    <p>
        <%= Html.ActionLink("צור חדש", "CreateSpring") %>
    <%= Html.ActionLink("לסל מיחזור", "RecycleBinMaayan") %>
    <%= Html.ActionLink("מומלצים", "ListRecommendedSpring") %>
   
    </p>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
